<head>
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script language="javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="js/jquery.js"></script>
<title>驴行天下</title>
<SCRIPT LANGUAGE="javascript"> 
function adaptive(){
	var wight=document.body.clientWidth;
	var Height=document.body.clientHeight;
	
	document.getElementById("body").style.display="";
}
</SCRIPT> 
</head>
<?php 
include 'conn_mysql.php';

print_r("功能暂时屏蔽");exit();

//读取用户信息   
$phone=$_SESSION['phone'];
$openid=$_SESSION['openid'];

if(strlen($phone)!=0){
	$sql="SELECT * FROM `ecs_users` WHERE mobile_phone='$phone'";
}
if(strlen($openid)!=0){
	$sql="SELECT * FROM `ecs_users` WHERE openid='$openid'";
}
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
	$user_name=$row['user_name'];
	$phone=$row['mobile_phone'];
	$wx_touxiang=$row['wx_touxiang'];
	$lvbi=$row['pay_points'];//驴币
	$sex =$row['sex'];//0-保密 1男 2女
	$shenfen_ID =$row['shenfen_ID'];
}
if($sex==1){
	$xingbie="男";
}
if($sex==2){
	$xingbie="女";
}

if(strlen($phone)<4){
	$phone='未绑定';
}

if(strlen($wx_touxiang)==0){
	$wx_touxiang="picture1/touxiang.png";
}

$bigtype=$_REQUEST['bigtype'];
if(strlen($bigtype==0)){
	$bigtype=1;
}
?>
<body style="margin:0;padding:0;display:none;background-color:#EBEFF0;" id="body" onload="adaptive()">
	<?php if($bigtype==1){ ?>
	<input style="width:100%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:20px;border:0; text-align:center;-webkit-appearance:none; button" value="个人资料" id="zhuche_shou" onfocus="this.blur()" ></input>
	<a href="log_gerenzhongxing1.php"><img style="width:30px;height:30px;position:absolute;left:10px;top:7.5px;" src="picture1/long_small.png"></img></a>
	
	<div style="width:100%;height:45px;box-shadow:0px 0px 2px 0px #bbb;background-color:#FEFEFE;margin-top:12px;">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:18px;margin-left:3%;display:block;margin-top:12px;">头像</a>
		<a style="float:right;color:#AAAAAB;font-family:微软雅黑;font-size:18px;margin-right:3%;display:block;margin-top:10px;">修改头像 ></a>
	</div>
	<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img">
		<label for="file" style="opacity: 0;">Filename:</label>
		<input type="file" name="file" id="file" style="float:left;width:100%;height:45px;margin-top:-66px;opacity: 0;" onchange="change_picture()"></input>
		<input name="phone" value="<?php echo $phone;?>" style="opacity: 0;">
	</form>
			
	<div style="width:100%;height:45px;box-shadow:0px 0px 2px 0px #bbb;background-color:#FEFEFE;margin-top:-36px;" onclick="window.location.href='log_gerenzhongxing2.php?bigtype=2&phone=<?php echo $phone;?>'">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:18px;margin-left:3%;display:block;margin-top:12px;">昵称</a>
		<a style="float:right;color:#AAAAAB;font-family:微软雅黑;font-size:18px;margin-right:3%;display:block;margin-top:10px;"><?php echo $user_name;?> ></a>
	</div>
	<?php if((string)$phone=='未绑定'){?>
	<div style="width:100%;height:45px;box-shadow:0px 0px 2px 0px #bbb;background-color:#FEFEFE;margin-top:1px;" onclick="window.location.href='log_the_zhuci_0.php'">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:18px;margin-left:3%;display:block;margin-top:12px;">手机号码</a>
			<a style="float:right;color:#AAAAAB;font-family:微软雅黑;font-size:18px;margin-right:3%;display:block;margin-top:10px;"><?php echo $phone;?> ></a>
	<?php }else{?>
	<div style="width:100%;height:45px;box-shadow:0px 0px 2px 0px #bbb;background-color:#FEFEFE;margin-top:1px;" onclick="">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:18px;margin-left:3%;display:block;margin-top:12px;">手机号码</a>
			<a style="float:right;color:#AAAAAB;font-family:微软雅黑;font-size:18px;margin-right:3%;display:block;margin-top:10px;"><?php echo $phone;?></a>
		<?php }?>
	</div>
	<div style="width:100%;height:45px;box-shadow:0px 0px 2px 0px #bbb;background-color:#FEFEFE;margin-top:1px;" onclick="window.location.href='log_gerenzhongxing2.php?bigtype=3&phone=<?php echo $phone;?>'">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:18px;margin-left:3%;display:block;margin-top:12px;">性别</a>
		<a style="float:right;color:#AAAAAB;font-family:微软雅黑;font-size:18px;margin-right:3%;display:block;margin-top:10px;"><?php echo $xingbie;?> ></a>
	</div>
	<div style="width:100%;height:45px;box-shadow:0px 0px 2px 0px #bbb;background-color:#FEFEFE;margin-top:1px;" onclick="window.location.href='log_gerenzhongxing2.php?bigtype=4'">
		<a style="float:left;color:#3E3A39;font-family:微软雅黑;font-size:18px;margin-left:3%;display:block;margin-top:12px;">身份证号</a>
		<a style="float:right;color:#AAAAAB;font-family:微软雅黑;font-size:18px;margin-right:3%;display:block;margin-top:10px;"><?php echo $shenfen_ID;?> ></a>
	</div>
	

	<?php }
	if($bigtype==2){ //修改昵称?>
	<input style="width:100%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:20px;border:0; text-align:center;" value="修改昵称" id="zhuche_shou" onfocus="this.blur()" ></input>
	<a href="log_gerenzhongxing2.php"><img style="width:30px;height:30px;position:absolute;left:10px;top:7.5px;" src="picture1/long_small.png"></img></a>
	
	<input type="text" style="box-shadow:0px 0px 2px 0px #bbb;
	width:100%;height:45px;background-color:#FEFEFE;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;margin-top:20px;padding:0 0 0 7%;" placeholder="请输入新昵称" id="name" name="name"></input>
	
	<input type="button" style="margin-right:auto;margin-left:auto;margin-top:20px;width:92%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:18px;border:0; text-align:center;border-radius:6px;margin-left:4%;-webkit-appearance:none; button" value="提交" onclick="tijiao_nicheng();"></input>
	<?php }
	if($bigtype==3){ ?>
		<input style="width:100%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:20px;border:0; text-align:center;" value="修改性别" id="zhuche_shou" onfocus="this.blur()" ></input>
		<a href="log_gerenzhongxing2.php"><img style="width:30px;height:30px;position:absolute;left:10px;top:7.5px;" src="picture1/long_small.png"></img></a>
		
		<select style="box-shadow:0px 0px 2px 0px #bbb;
		width:100%;height:45px;background-color:#FEFEFE;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;margin-top:17px;padding:0 0 0 7%;" id="xingbie" name="xingbie">
			  <option value ="1">男</option>
			  <option value="2">女</option>
		</select>
		
		<input type="button" style="margin-right:auto;margin-left:auto;margin-top:20px;width:92%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:18px;border:0; text-align:center;border-radius:6px;margin-left:4%;-webkit-appearance:none; button" value="提交" onclick="tijiao_xingbie();"></input>
	
	<?php }
	if($bigtype==4){ ?>	
		<input style="width:100%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:20px;border:0; text-align:center;" value="修改身份证号" id="zhuche_shou" onfocus="this.blur()" ></input>
		<a href="log_gerenzhongxing2.php"><img style="width:30px;height:30px;position:absolute;left:10px;top:7.5px;" src="picture1/long_small.png"></img></a>
		
		<form action="getmessage_all.php" method="post" enctype="multipart/form-data" id="upload_user_img">
			<input style="opacity: 0;margin-top:-20px;" name="bigtype" value="17"></input>
			
			<input type="number" style="box-shadow:0px 0px 2px 0px #bbb;
			width:100%;height:45px;background-color:#FEFEFE;line-height:45px;color:#000000;font-family:微软雅黑;font-size:18px;border:0; text-align:left;margin-top:17px;padding:0 0 0 7%;" placeholder="请输入身份证号" id="shenfen_ID" name="shenfen_ID"></input>
			
			<input type="submit" style="margin-right:auto;margin-left:auto;margin-top:20px;width:92%;height:45px;background-color:#E50011;line-height:45px;color:#FFFFFF;font-family:微软雅黑;font-size:18px;border:0; text-align:center;border-radius:6px;margin-left:4%;-webkit-appearance:none; button" value="提交" onclick="tijiao_mima();"></input>
		</form>

	<?php } ?>
	
	
	<!--判断是否提交订单时的修改个人信息，如果是 则 增加一个返回按钮-->
	<?php  if(strlen($is_xiugai)!=0){ ?>
	<input type="button" style="clear:left;width:100%;height:50px;background-color:#ff0000;line-height:50px;color:#FFFFFF;font-family:微软雅黑;font-size:20px;border:0; position:fixed;z-index:998;bottom:0px;text-align:center;-webkit-appearance:none;" value="返回订单页" onclick="window.location.href='index_pay.php';"></input>
	<?php } ?>
	
</body>
<SCRIPT LANGUAGE="javascript"> 
function change_picture(){
	$("#upload_user_img").submit();
}
function tijiao_nicheng(){
	name=document.getElementById("name").value;
	window.location.href='getmessage_all.php?bigtype=11&phone=<?php echo $_SESSION['phone'];?>&name='+name;
}
function tijiao_xingbie(){
	xingbie=document.getElementById("xingbie").value;
	window.location.href='getmessage_all.php?bigtype=12&phone=<?php echo $_SESSION['phone'];?>&xingbie='+xingbie;
}
function tijiao_mima(){
	old_mima=document.getElementById("old_mima").value;
	new_mima=document.getElementById("new_mima").value;
	window.location.href='getmessage_all.php?bigtype=13&new_mima='+new_mima+'&old_mima='+old_mima;
}
</SCRIPT>






